package com.bt.springboot.zookeeper;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zkx
 * @Date 2024/8/13 16:30
 */
@Slf4j
@RestController
public class ZookeeperController {
//	@Autowired
//	private ZkApi zkApi;

	@GetMapping(value = "createNode")
	public boolean createNode(String path, String data) {
		log.debug("ZookeeperController create node {},{}", path, data);
//		return zkApi.createNode(path, data);
		return true;
	}
}
